﻿using AdminBase.Model.Entitys;

namespace AdminBase.Interface
{
    /// <summary>
    /// 文件服务接口
    /// </summary>
    public interface IFilesService
    {
        /// <summary>
        /// 新增
        /// </summary>
        /// <param name="entity"></param>
        /// <returns></returns>
        /// <exception cref="Exception"></exception>
        bool Add(Files entity);

        /// <summary>
        /// 获取
        /// </summary>
        /// <param name="fileID">文件Guid</param>
        /// <returns></returns>
        Files Get(string fileID);

        /// <summary>
        /// 删除
        /// </summary>
        /// <param name="fileID"></param>
        /// <returns></returns>
        bool Delete(string fileID);
    }
}
